export const URL_MAP = {
    PERSON_LIST: 'respondent/respondentList',
    PERSON_ADD: 'respondent/respondent',
    POST_LOG: 'record/record',
    PUT_LOG: 'record/record',
    REGISTER: 'user/user',
    SR_SEARCH: 'xx',
    LOG_COUNT: 'record/underReviewRecordCount',
    UPLOAD_URL:'record/file',
    CHANGE_PASSWD:'',
    SH_PUT: "record/underReviewRecord",
    LOG_LIST: "record/recordList",
    LOG_DETAIL: 'record/recordValues',
    LOG_IN: 'user/login',
    USER_LIST: 'user/userList',
    USER_ADD: 'user/user',
    USER_EDIT: 'user/userInfo',
    ROLE_EDIT: 'user/userRole',
    ROLE_LIST: 'role/roleList',
    ROLE_ADD: 'role/role',
    AUTH_LIST: 'role/authorityList',
    DOWNLOAD_LOG: 'investigationRecord/record2word',
    METADATA: 'metaData/metaData',
    METADATA_LIST: 'metaData/metaDataList',
    USER_ROLE: 'user/userRole',
    CONFIG_GET: '',
    PROJECT_LIST:'project/projectList',
    PROJECT_ADD: 'project/project',
    AUDIT_LOG:'',
    PROJECT_COUNT: 'project/respondentCount',
    PROJECT_STATE: 'project/projectState',
    PASSWD_RESET: 'user/pwd',
    
    BIG_SYSTEM: 'http://localhost:8080'
}

export const INNER_COMPS = {
  'id-input': {
    type: 'id-input',
  },
  'admin': {
    type: 'AdminSelect'
  }
}

export const BACKEND_URL = '/backend/'
window.FORM_CONFIG = {}
if(sessionStorage.getItem('FORM_CONFIG'))
{  
    window.FORM_CONFIG = JSON.parse(sessionStorage.getItem('FORM_CONFIG'))
}

export function getConfigData(name, defaultValue) {
    if(name in FORM_CONFIG.config) {
        return FORM_CONFIG.config[name]
    }
    return defaultValue
}

